// encodeURI/encodeURIComponent:可把字符串作为 URI 进行编码。
let s = "Hello @#&=+$ World !!!";
let res = encodeURIComponent(s);
console.log(res);  // Hello%20%40%23%26%3D%2B%24%20World%20!!!

let res2 = encodeURI(s);
console.log(res2);  // Hello%20@#&=+$%20World%20!!!
